package com.atguigu.auth.activiti;

import org.springframework.stereotype.Component;

/**
 * ClassName: UserBean
 * Package: com.atguigu.auth.activiti
 * Description:
 *
 * @Author 朱安迪
 * @Create 2023/4/29 20:32
 * @Version 1.0
 */
@Component
public class UserBean {
    public String getUsername(int id) {
        if(id == 1) {
            return "lilei";
        }
        if(id == 2) {
            return "hanmeimei";
        }
        return "admin";
    }
}
